<template>
  <div class="content">
    <template v-for="item in homer.cateGory" :key="item.id">
      <div class="item">
        <img :src="item.pictureUrl" alt="">
        <span>{{ item.title }}</span>
      </div>
    </template>
  </div>
</template>
<script setup>
import { useHome } from '../../../Pinia/modules/home';
const homer = useHome();
homer.getCateGory()
</script>
<style  lang="less" scoped>
.content {
  display: flex;
  overflow-x: auto;
  height: 80px;
  padding: 0 10px;
  margin-top: 8px;

  &::-webkit-scrollbar {
    display: none;
  }
}

.item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  text-align: center;

  &::-webkit-scrollbar {
    display: none;
  }

  img {
    height: 32px;
    width: 32px;
  }

  span {
    margin-top: 8px;
    font-size: 12px;
  }
}
</style>